home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / windows / stallrel.zip / I386 / OEMSETUP.INF next >
INI File  |  1995-11-27  |  35KB  |  1,222 lines

  1.  
  2. [Identification]
  3.     OptionType = NetAdapter
  4.  
  5.  
  6. [Options]
  7.     EIO            = "Stallion EasyIO"
  8.     EC8_32        = "Stallion EasyConnection 8/32"
  9.     EC8_64        = "Stallion EasyConnection 8/64"
  10.  
  11.  
  12. [LanguagesSupported]
  13.     ENG
  14.  
  15.  
  16. [Source Media Descriptions]
  17.     1 = "Stallion Driver Disk", TAGFILE = StlnATA1.txt
  18.  
  19.  
  20. [Files_Config]
  21.     DLL = 1, stlncfg.dll, SIZE=65000
  22.     HLP = 1, stlncfg.hlp, SIZE=400000
  23.  
  24. [Files_Driver]
  25.     Driver = 1, StlnATA.sys, SIZE=250000
  26.  
  27. [Files_Inf]
  28.     Inf = 1, oemsetup.inf, SIZE=40000, RENAME=$(!UG_Filename)
  29.  
  30.  
  31. [GeneralConstants]
  32.     NoTitle                        = 0
  33.     KeyNull                        = ""
  34.     MaskAllAccess                = 33554432
  35.     ErrorIndex                    = "NO_ERROR"
  36.     ErrorPrefix                    = ""
  37.  
  38.     UtilityInf                    = "utility.inf"
  39.     SubroutineInf                = "subroutn.inf"
  40.  
  41.  
  42. [InstallConstants]
  43.     StlnCfgHandle                = $(HandleNull)
  44.     Manufacturer                = "Stallion"
  45.     ProductSoftwareName            = "StlnATA"
  46.     ProductHardwareName            = "StlnATA"
  47.     ProductSoftwareTitle        = "Stallion ATA Driver"
  48.     ProductSoftwareDescription    = "Stallion EasyIO/EasyConnection driver"
  49.     ProductMajorVersion            = "5"
  50.     ProductMinorVersion            = "2.0"
  51.     ProductVersion                = $(ProductMajorVersion)"."+
  52.                                   $(ProductMinorVersion)
  53.     ProductSoftwareImagePath    = "%SystemRoot%\System32\drivers\StlnATA.sys"
  54.     ProductKeyName                = $(!NTN_SoftwareBase)"\"$(Manufacturer)+
  55.                                   "\"$(ProductSoftwareName)"\CurrentVersion"
  56.     NTKeyName                    = $(!NTN_SoftwareBase)"\Microsoft\Windows NT"+
  57.                                   "\CurrentVersion"
  58.     NetworkCardsKeyName            = $(!NTN_SoftwareBase)"\Microsoft\Windows NT"+
  59.                                   "\CurrentVersion\NetworkCards"
  60.     ProductSoftwareHidden        = 1
  61.  
  62.     SoftwareType                = "driver"
  63.     NetRuleSoftwareType            = "stlnATA_Sys serialDriver stlnATA_Driver"
  64.     NetRuleSoftwareUse            = $(SoftwareType)
  65.     NetRuleSoftwareBindForm        = """stlnATA_Driver"" yes no container"
  66.     NetRuleSoftwareClass        = {"serialDriver basic",+
  67.                                    "stlnATA_Driver basic"}
  68.     NetRuleSoftwareBindable        = {"stlnATA_Driver stlnATA_Adapter "+
  69.                                    "non exclusive 100"}
  70.  
  71.     NetRuleHardwareType            = "stlnATA stlnATA_Adapter"
  72.     NetRuleHardwareBindForm        = " yes yes container"
  73.     NetRuleHardwareClass        = {"stlnATA_Adapter basic"}
  74.     IoLogMsgDLL                    = "%SystemRoot%\System32\IoLogMsg.dll"
  75.     SerialMapParent                = "HARDWARE\DEVICEMAP"
  76.     SerialMapKeyName            = "SERIALCOMM"
  77.     SerialMap                    = $(SerialMapParent)"\"$(SerialMapKeyName)
  78.     EISAAdapter                    = "HARDWARE\Description\System\EISAAdapter"
  79.     MultiAdapter                = "HARDWARE\Description\System\"+
  80.                                   "MultifunctionAdapter"
  81.     EC8_32_PCIVendorId            = 4107
  82.     EC8_32_PCIDeviceId            = 53249
  83.  
  84.  
  85. [MessageConstantsENG]
  86.     FunctionTitle                = "Stallion Multiport Setup"
  87.     ShellCodeErrorTitle            = "Error: "$(FunctionTitle)
  88.     ShellCodeErrorText            = "Shell Code Error."
  89.     UpdateCfgMessage            = "Updating configuration information"
  90.     CardExistedText                = "There are already one or more Stallion "+
  91.                                   "cards installed in the system.  "+
  92.                                   "Do you want to install another?"
  93.     ProCaption                    = "Stallion Adapter Setup"
  94.     ProCancel                    = "Cancel"
  95.     ProCancelMsg                = "Installation is not complete.  "+
  96.                                   "Are you sure you want to cancel "+
  97.                                   "copying files?"
  98.     ProCancelCap                = "Stallion Setup Message"
  99.     ProText1                    = "Copying:"
  100.     ProText2                    = "To:"
  101.  
  102.  
  103. [ErrorStringsENG]
  104.     STLN_NO_BIND                = "Binding not implemented"
  105.     STLN_NO_BUS_FOUND            = "Can't find system bus in Registry"
  106.     STLN_SHELLCODE_ERROR        = "Shell command failed"
  107.     STLN_CREATE_PANEL_KEY        = "Unable to create Panel key in Registry"
  108.     STLN_OPEN_SOFTWARE_KEY        = "Unable to open Software Product key in "+
  109.                                   "Registry"
  110.     STLN_OPEN_PARAM_KEY            = "Unable to open Netcard Parameters key in "+
  111.                                   "Registry"
  112.     STLN_CREATE_SMAP_KEY        = "Unable to create "$(SerialMapKeyName)+
  113.                                   " key in Registry"
  114.     STLN_OPEN_NETCARD_KEY        = "Unable to open network card key in Registry"
  115.     STLN_OPEN_NT_KEY            = "Unable to open Windows NT key in Registry"
  116.  
  117.  
  118. [Identify]
  119.     read-syms Identification
  120.  
  121.     set Status            = STATUS_SUCCESSFUL
  122.     set Identifier        = $(OptionType)
  123.     set Media            = #("Source Media Descriptions", 1, 1)
  124.  
  125.     return $(Status) $(Identifier) $(Media)
  126.  
  127.  
  128. [ReturnOptions]
  129.     set Status            = STATUS_FAILED
  130.     set OptionList        = {}
  131.     set OptionTextList    = {}
  132.  
  133.     set LanguageList = ^(LanguagesSupported, 1)
  134.     ifcontains(i) $($0) not-in $(LanguageList)
  135.         set Status = STATUS_NOLANGUAGE
  136.         goto ReturnOptions_return
  137.     endif
  138.  
  139.     set OptionList        = ^(Options, 0)
  140.     set OptionTextList    = ^(Options, 1)
  141.     set Status            = STATUS_SUCCESSFUL
  142.  
  143. ReturnOptions_return = +
  144.     return $(Status) $(OptionList) $(OptionTextList)
  145.  
  146.  
  147. : Called by NCPASHEL.INF to do install/deinstall/update/configure.
  148. [InstallOption]
  149.     StartWait
  150.  
  151.     set Language        = $($0)
  152.     set Option            = $($1)
  153.     set SrcDir            = $($2)
  154.     set AddCopy            = $($3)
  155.     set DoCopy            = $($4)
  156.     set DoConfig        = $($5)
  157.  
  158.     set LanguageList = ^(LanguagesSupported, 1)
  159.     ifcontains(i) $(Language) not-in $(LanguageList)
  160.         return STATUS_NOLANGUAGE
  161.     endif
  162.  
  163.     read-syms GeneralConstants
  164.     read-syms InstallConstants
  165.     read-syms MessageConstants$(Language)
  166.     set-title $(FunctionTitle)
  167.     detect date
  168.  
  169.     set OEM_ABANDON_ON = FALSE
  170.     set CommonStatus = STATUS_SUCCESSFUL
  171.  
  172.     ifstr(i) $(!NTN_InstallMode) == update
  173.         goto DoUpdate
  174.     else-ifstr(i) $(!NTN_InstallMode) == configure
  175.         goto DoConfigure
  176.     else-ifstr(i) $(!NTN_InstallMode) == deinstall
  177.         goto DoRemove
  178.     else-ifstr(i) $(!NTN_InstallMode) == bind
  179.         goto DoBind
  180.     endif
  181.  
  182. DoInstall = +
  183.     set OEM_ABANDON_ON = TRUE
  184.     set OEM_ABANDON_OPTIONS = {}
  185.     set OEM_ABANDON_SOFTWARE = FALSE
  186.  
  187.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MaskAllAccess) +
  188.         KeyProduct
  189.     ifstr $(KeyProduct) == $(KeyNull)
  190.         set DriverAlreadyInstalled = FALSE
  191.     else
  192.         CloseRegKey $(KeyProduct)
  193.         set DriverAlreadyInstalled = TRUE
  194.         ifstr(i) $(!NTN_RegBase) == $(ProductKeyName)
  195.             shell $(UtilityInf) VerExistedDlg $(ProductSoftwareTitle) +
  196.                 $(ProductVersion)
  197.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  198.                 goto shellcode_error
  199.             endif
  200.             goto end
  201.         endif
  202.         shell "" CardExistedDlg
  203.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  204.             goto shellcode_error
  205.         endif
  206.         ifstr(i) $($R1) != "OK"
  207.             set CommonStatus = STATUS_USERCANCEL
  208.             goto end
  209.         endif
  210.     endif
  211.  
  212.     ifstr(i) $(DriverAlreadyInstalled) == FALSE
  213.         ifstr(i) $(DoCopy) == YES
  214.             shell $(UtilityInf) DoAskSource $(!STF_CWDDIR) $(SrcDir) YES
  215.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  216.                 goto shellcode_error
  217.             else-ifstr(i) $($R0) == STATUS_FAILED
  218.                 set ErrorIndex = ASK_SOURCE_FAIL
  219.                 goto fatalmessage
  220.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  221.                 set CommonStatus = STATUS_USERCANCEL
  222.                 goto end
  223.             endif
  224.             set SrcDir = $($R1)
  225.         endif
  226.         install Install_Option
  227.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  228.             set ErrorIndex = UNABLE_COPY_FILE
  229.             goto fatalmessage
  230.         endif
  231.     endif
  232.  
  233.     shell "" GetSystemCfgData
  234.     set ErrorIndex    = $($R0)
  235.     set ErrorPrefix = $($R1)
  236.     set numISA        = $($R2)
  237.     set numEISA        = $($R3)
  238.     set numMCA        = $($R4)
  239.     set numPCI        = $($R5)
  240.     set ComPortList    = $($R6)
  241.  
  242.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  243.         goto shellcode_error
  244.     endif
  245.  
  246.     ifstr(i) $(ErrorIndex) != NO_ERROR
  247.         goto fatalmessage
  248.     endif
  249.  
  250.     shell "" GetNewPCIBoards $(Option)
  251.     set ErrorIndex     = $($R0)
  252.     set ErrorPrefix  = $($R1)
  253.     set PCIBoardList = $($R2)
  254.  
  255.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  256.         goto shellcode_error
  257.     endif
  258.  
  259.     ifstr(i) $(ErrorIndex) != NO_ERROR
  260.         goto fatalmessage
  261.     endif
  262.  
  263.     LoadLibrary "x" $(!STF_CWDDIR)stlncfg.dll StlnCfgHandle
  264.     shell $(SubroutineInf) PopBillBoard
  265.     LibraryProcedure Result $(StlnCfgHandle) DoStlnConfig +
  266.         $(!STF_HWND) $(Option) $(numISA) $(numEISA) $(numMCA) $(numPCI) +
  267.         $(PCIBoardList) $(ComPortList)
  268.     ifstr(i) $(StlnCfgHandle) != $(HandleNull)
  269.         FreeLibrary $(StlnCfgHandle)
  270.     endif
  271.     set CfgParameters = $(Result)
  272.     set CfgError = *($(CfgParameters),1)
  273.     ifint $(CfgError) == 0
  274.         set CommonStatus = STATUS_USERCANCEL
  275.         goto end
  276.     endif
  277.     ifint $(CfgError) < 0
  278.         goto fatal
  279.     endif
  280.     set BusType        = *($(CfgParameters), 2)
  281.     set BusNumber    = *($(CfgParameters), 3)
  282.     set Slot        = *($(CfgParameters), 4)
  283.     set IOBase        = *($(CfgParameters), 5)
  284.     set IO2Base        = *($(CfgParameters), 6)
  285.     set